package com.singleton;

public class hungrysingleton {
	private static hungrysingleton instance=new hungrysingleton();
	private hungrysingleton(){
		System.out.println("饿汉式创建");
	}
	public static hungrysingleton getinstance(){
		return instance;
	}
	public void get(){
		System.out.println("我就是我");
	}
}
